package com.amit.jdbc.oracle;

import java.sql.Connection;

import java.sql.Statement;

import com.amit.jdbc.mysql.JDBCUTIL;

public class Lab2 {

	static Connection con;
	static Statement st;
	
	public static void main(String[] args) {
		
		try
		{
		 con=JDBCUTIL.getoracleconnection();
		
		String sql="insert into amit values(6,'amityadav','amityadav@gmail.com',1233,23.0)";
		
		Statement st=con.createStatement();
		
		 int i=st.executeUpdate(sql);
		 
	
		System.out.println(i+"Record inserted");
		
		}
		
		catch (Exception e) {
			
			e.printStackTrace();	
		}
		
		finally
		{
			JDBCUTIL.cleanup(st,con);
		}
		
	}

}
